﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SampleCardEdit.aspx.cs" Inherits="PPAP.Web.Master.SampleCardEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <title></title>
    <link href="kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
    <link href="kindeditor/plugins/code/prettify.css" rel="stylesheet" type="text/css" />
    <script src="kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="kindeditor/lang/en.js" type="text/javascript"></script>
    <script src="kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#content1', {
                cssPath: '../../kindeditor/plugins/code/prettify.css',
                uploadJson: '../../kindeditor/upload_json.ashx',
                fileManagerJson: '../../kindeditor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            //  prettyPrint();
        });
    </script>
    <script src="../../js/jquery-1.2.6.js" type="text/javascript"></script>
    <script type="text/javascript">
        function check() {
            var testitem = document.getElementById("txtTest").value;
            var remark = document.getElementById("content1").value;
        if (testitem == "") {
            alert("Test item is null");
            return false;
        }
//        if (remark == "") {
//            alert("Remark is null");
//            return false;
//        }
        return confirm('Are you sure you want to save?');
        }
    </script>
</head>
<body style="font-family: Arial, Helvetica, sans-serif;overflow-x:hidden;"  bgcolor="#E7E8E8" >
    <form id="form1" runat="server">
    <div>
    <table width="95%" align="center" style="margin-top:10px;">
    <tr><td width="85px">
        Sample card
        </td><td>
            <asp:TextBox autocomplete="off"   ID="txtTest" runat="server" Width="580px"></asp:TextBox><font color='red'>*(please input sample card)</font>
        </td></tr><tr><td>
            Department
        </td><td>
            <asp:DropDownList ID="ddlDepartment" runat="server" Width="585px">
            </asp:DropDownList>
        </td></tr>
        <tr><td>
        Test items
        </td><td>
            <%--<asp:TextBox autocomplete="off"   ID="txtRemark" runat="server" Height="70px"  TextMode="MultiLine"  style="word-wrap : break-word;word-break: break-all; overflow:hidden; " 
                    Width="480px"></asp:TextBox>--%>
                     <textarea id="content1" cols="100" rows="8" style="width: 750px; height: 450px; visibility: hidden;"
            runat="server"></textarea>
        </td></tr>
    
    <tr><td colspan="2" align="center"><asp:Button ID="Button1" CssClass="button" runat="server" 
            Text="Add" onclick="Button1_Click" 
            onclientclick="return check();" /></td></tr></table>
    </div>
    </form>
</body>
</html>
